package cn.jetpiece.cloud.joss.api.accossor.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 创建授权记录
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@Data
@ApiModel
public class CreateAccessorParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统名称
     */
    @NotBlank(message = "系统名称不能为空")
    @ApiModelProperty(value = "系统名称", required = true)
    private String accessorName;

    /**
     * 默认桶名称
     */
    @NotBlank(message = "默认桶名称不能为空")
    @ApiModelProperty(value = "默认桶名称", required = true)
    private String defaultBucketName;

    /**
     * 默认对象前缀路径
     */
    @ApiModelProperty(value = "默认对象前缀路径", example = "/HCC/Range/")
    private String defaultObjectPrefixPath;

    /**
     * 请求有效时间
     */
    @ApiModelProperty(value = "请求有效时间,毫秒", example = "1000")
    private Long requestValidTime = 1000L;

    /**
     * 启用(1:是,0:否)
     */
    @ApiModelProperty(value = "启用(1:是,0:否)")
    private Integer isEnable;
}
